package com.shiyi.mapper;

import com.shiyi.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wangzhanshuai
 * @date 2021/2/11 10:59 下午
 * @since 1.0
 */
public interface UserMapper {

    User getUserById1(Long id);

    User getUserById2(Long id);

    List<User> listUserByRole(Long roleId);

    List<User> listUserByIds(@Param("ids") List<Long> ids);

    List<User> listUser(User user);

    User getUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    int save(User user);

    int update(User user);

    int deleteUserById(Long id);

}
